using System;
using System.Linq;

namespace Caramel
{
	public interface IRepository<T> where T : class
	{
		T Get(object id);

		void Save(T entity);

		void Delete(T entity);

		void DeleteAll();

		IQueryable<T> All { get; }
	}
}
